package dao.oc_operator_user;

import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import entitybean.oc_operator_user.EntityBeanOc_Operator_User;
public class DaoImpl_Oc_Operator_User extends HibernateDaoSupport implements Dao_Oc_Operator_User{
	public void Insert_Oc_Operator_User(EntityBeanOc_Operator_User e)
	{
		this.getHibernateTemplate().save(e);
	}
	public void Update_Oc_Operator_User(EntityBeanOc_Operator_User e)
	{
		this.getHibernateTemplate().update(e);
	}
	public void Delete_Oc_Operator_User(EntityBeanOc_Operator_User e)
	{
		this.getHibernateTemplate().delete(e);
	}
	@SuppressWarnings("unchecked")
	public List<EntityBeanOc_Operator_User> Find_EntityBeanOc_Operator_User_by_account_and_password(String account,String password)
	{
		return this.getHibernateTemplate().find("from EntityBeanOc_Operator_User where account='"+account+"' and password='"+password+"'");
	}
}
